package com.amigo.online.provider.manager.model.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import com.amigo.online.provider.manager.util.param.dto.PageDto;

/**
 * goods_tbl
 *
 * @author
 */
@Table(name = "goods_tbl")
@Alias(value = "goodsTbl")
public class GoodsTbl extends PageDto {


    /**
     * 商户id
     */
    @Column(name = "merchant_id")
    private Long merchantId;

    /**
     * 商户名称
     */
    @Column(name = "merchant_name")
    private String merchantName;

    /**
     * 标签id（大类）
     */
    @Column(name = "label_id")
    private Long labelId;

    /**
     * 类别id（小类）
     */
    @Column(name = "category_id")
    private Long categoryId;

    /**
     * 活动标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 商品价格
     */
    @Column(name = "price")
    private Integer price;

    /**
     * 折扣价
     */
    @Column(name = "discount_price")
    private Integer discountPrice;

    /**
     * 好评率
     */
    @Column(name = "feedback")
    private Integer feedback;

    /**
     * 封面图
     */
    @Column(name = "cover_img")
    private String coverImg;

    /**
     * 热门权重
     */
    @Column(name = "hot_weight")
    private BigDecimal hotWeight;

    /**
     * 0-审核失败 1-审核中 2-上架中 3-下架中
     */
    @Column(name = "status")
    private Integer status;

    @Column(name = "lat")
    private String lat;

    @Column(name = "lng")
    private String lng;


    @Column(name = "updated_time")
    private Long updatedTime;

    /**
     * 1删除   0未删除
     */
    @Column(name = "deleted")
    private Boolean deleted;

    @Column(name = "deleted_time")
    private Long deletedTime;

    /**
     * 上架时间
     */
    @Column(name = "up_time")
    private Long upTime;

    /**
     * 下架时间
     */
    @Column(name = "down_time")
    private Long downTime;


    @Transient
    private String categoryImgUrl;
    @Transient
    private String categoryNameCn;
    @Transient
    private String categoryNameEn;
    @Transient
    private String categoryNameEs;
    @Transient
    private String categoryNamePt;
    @Transient
    private String labelImgUrl;
    @Transient
    private String labelNameCn;
    @Transient
    private String labelNameEn;
    @Transient
    private String labelNameEs;
    @Transient
    private String labelNamePt;

    private static final long serialVersionUID = 1L;


    public String getCategoryImgUrl() {
        return categoryImgUrl;
    }

    public void setCategoryImgUrl(String categoryImgUrl) {
        this.categoryImgUrl = categoryImgUrl;
    }

    public String getCategoryNameCn() {
        return categoryNameCn;
    }

    public void setCategoryNameCn(String categoryNameCn) {
        this.categoryNameCn = categoryNameCn;
    }

    public String getCategoryNameEn() {
        return categoryNameEn;
    }

    public void setCategoryNameEn(String categoryNameEn) {
        this.categoryNameEn = categoryNameEn;
    }

    public String getCategoryNameEs() {
        return categoryNameEs;
    }

    public void setCategoryNameEs(String categoryNameEs) {
        this.categoryNameEs = categoryNameEs;
    }

    public String getCategoryNamePt() {
        return categoryNamePt;
    }

    public void setCategoryNamePt(String categoryNamePt) {
        this.categoryNamePt = categoryNamePt;
    }

    public String getLabelImgUrl() {
        return labelImgUrl;
    }

    public void setLabelImgUrl(String labelImgUrl) {
        this.labelImgUrl = labelImgUrl;
    }

    public String getLabelNameCn() {
        return labelNameCn;
    }

    public void setLabelNameCn(String labelNameCn) {
        this.labelNameCn = labelNameCn;
    }

    public String getLabelNameEn() {
        return labelNameEn;
    }

    public void setLabelNameEn(String labelNameEn) {
        this.labelNameEn = labelNameEn;
    }

    public String getLabelNameEs() {
        return labelNameEs;
    }

    public void setLabelNameEs(String labelNameEs) {
        this.labelNameEs = labelNameEs;
    }

    public String getLabelNamePt() {
        return labelNamePt;
    }

    public void setLabelNamePt(String labelNamePt) {
        this.labelNamePt = labelNamePt;
    }

    public Long getLabelId() {
        return labelId;
    }

    public void setLabelId(Long labelId) {
        this.labelId = labelId;
    }

    public Long getUpTime() {
        return upTime;
    }

    public void setUpTime(Long upTime) {
        this.upTime = upTime;
    }

    public Long getDownTime() {
        return downTime;
    }

    public void setDownTime(Long downTime) {
        this.downTime = downTime;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }


    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(Integer discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getFeedback() {
        return feedback;
    }

    public void setFeedback(Integer feedback) {
        this.feedback = feedback;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public BigDecimal getHotWeight() {
        return hotWeight;
    }

    public void setHotWeight(BigDecimal hotWeight) {
        this.hotWeight = hotWeight;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }


    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }


}
